Integrand size = 31, antiderivative size = 85 \[ \int \frac {\cos ^2(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{5/2}} \, dx=\frac {2 B \sqrt {b \cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b^3 d \sqrt {\cos (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{b^2 d \sqrt {b \cos (c+d x)}} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {16, 2827, 2721, 2720, 2719} \[ \int \frac {\cos ^2(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{5/2}} \, dx=\frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{b^2 d \sqrt {b \cos (c+d x)}}+\frac {2 B E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {b \cos (c+d x)}}{b^3 d \sqrt {\cos (c+d x)}} \]
[In]
[Out]
Rule 16
Rule 2719
Rule 2720
Rule 2721
Rule 2827
Rubi steps \begin{align*} \text {integral}& = \frac {\int \frac {A+B \cos (c+d x)}{\sqrt {b \cos (c+d x)}} \, dx}{b^2} \\ & = \frac {A \int \frac {1}{\sqrt {b \cos (c+d x)}} \, dx}{b^2}+\frac {B \int \sqrt {b \cos (c+d x)} \, dx}{b^3} \\ & = \frac {\left (A \sqrt {\cos (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{b^2 \sqrt {b \cos (c+d x)}}+\frac {\left (B \sqrt {b \cos (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx}{b^3 \sqrt {\cos (c+d x)}} \\ & = \frac {2 B \sqrt {b \cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{b^3 d \sqrt {\cos (c+d x)}}+\frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{b^2 d \sqrt {b \cos (c+d x)}} \\ \end{align*}
Time = 0.04 (sec) , antiderivative size = 57, normalized size of antiderivative = 0.67 \[ \int \frac {\cos ^2(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{5/2}} \, dx=\frac {2 \sqrt {\cos (c+d x)} \left (B E\left (\left .\frac {1}{2} (c+d x)\right |2\right )+A \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )\right )}{b^2 d \sqrt {b \cos (c+d x)}} \]
[In]
[Out]
Time = 4.59 (sec) , antiderivative size = 163, normalized size of antiderivative = 1.92
method | result | size |
default | \(-\frac {2 \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \left (A F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-B E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{b^{2} \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b}\, d}\) | \(163\) |
parts | \(-\frac {2 A \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{b^{2} \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b}\, d}+\frac {2 B \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )}{b^{2} \sqrt {-b \left (2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-\left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) b}\, d}\) | \(290\) |
risch | \(-\frac {i B \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) \sqrt {2}\, {\mathrm e}^{-i \left (d x +c \right )}}{d \,b^{2} \sqrt {\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) b \,{\mathrm e}^{-i \left (d x +c \right )}}}-\frac {i \left (\frac {i A \sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}\, \sqrt {2}\, \sqrt {i \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}\, \sqrt {i {\mathrm e}^{i \left (d x +c \right )}}\, F\left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )}{\sqrt {b \,{\mathrm e}^{3 i \left (d x +c \right )}+b \,{\mathrm e}^{i \left (d x +c \right )}}}+B \left (-\frac {2 \left (b \,{\mathrm e}^{2 i \left (d x +c \right )}+b \right )}{b \sqrt {{\mathrm e}^{i \left (d x +c \right )} \left (b \,{\mathrm e}^{2 i \left (d x +c \right )}+b \right )}}+\frac {i \sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}\, \sqrt {2}\, \sqrt {i \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}\, \sqrt {i {\mathrm e}^{i \left (d x +c \right )}}\, \left (-2 i E\left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )+i F\left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right )\right )}{\sqrt {b \,{\mathrm e}^{3 i \left (d x +c \right )}+b \,{\mathrm e}^{i \left (d x +c \right )}}}\right )\right ) \sqrt {2}\, \sqrt {\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) b \,{\mathrm e}^{i \left (d x +c \right )}}\, {\mathrm e}^{-i \left (d x +c \right )}}{d \,b^{2} \sqrt {\left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) b \,{\mathrm e}^{-i \left (d x +c \right )}}}\) | \(434\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.12 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.44 \[ \int \frac {\cos ^2(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{5/2}} \, dx=\frac {-i \, \sqrt {2} A \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} A \sqrt {b} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} B \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - i \, \sqrt {2} B \sqrt {b} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right )}{b^{3} d} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^2(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\cos ^2(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{5/2}} \, dx=\int { \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{2}}{\left (b \cos \left (d x + c\right )\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {\cos ^2(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{5/2}} \, dx=\int { \frac {{\left (B \cos \left (d x + c\right ) + A\right )} \cos \left (d x + c\right )^{2}}{\left (b \cos \left (d x + c\right )\right )^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^2(c+d x) (A+B \cos (c+d x))}{(b \cos (c+d x))^{5/2}} \, dx=\int \frac {{\cos \left (c+d\,x\right )}^2\,\left (A+B\,\cos \left (c+d\,x\right )\right )}{{\left (b\,\cos \left (c+d\,x\right )\right )}^{5/2}} \,d x \]
[In]
[Out]